<template>
  <div class="starInfo border-bottom">
    <div class="overallScore border-right">
      <p class="value">{{seller.score}}</p>
      <p class="name">综合评分</p>
      <p class="description">高于周边商家{{seller.rankRate}}%</p>
    </div>
    <div class="star">
      <p class="line">
        <span class="title">服务态度</span>
        <Star :score="seller.serviceScore"></Star>
      </p>
      <p class="line">
        <span class="title">菜品评价</span>
        <Star :score="seller.foodScore"></Star>
      </p>
      <p class="line">
        <span class="title">送达时间</span>
        <span class="time">{{seller.deliveryTime}}分钟</span>
      </p>
    </div>
  </div>
</template>

<script>
import Star from '@/pages/common/Star.vue'
export default {
  name: 'StarInfo',
  components: {
    Star
  },
  props: {
    seller: Object
  }
}
</script>

<style lang='scss' scoped>
  .starInfo {
    display: flex;
    padding: 36px 48px;
    background: #fff;
    margin-bottom: 34px;
    &.border-bottom::before {
      border-color: rgba(7, 17, 27, .1);
      border-width: 2px;
    }
  }
  .overallScore {
    padding: 0 48px;
    border-right: #e6e7e8;
    text-align: center;
    .value {
      font-size: 48px;/*px*/
      line-height: 56px;
      color: rgb(255, 153, 0)
    }
    .name {
      font-size: 24px;
      line-height: 36px;
      color: rgb(7, 17, 27)
    }
    .description {
      font-size: 20px;
      line-height: 30px;
      color: rgba(7, 17, 17, .4)
    }
  }
  .star {
    padding: 0 48px;
    .line {
      padding: 8px 0;
      .title {
        margin-right: 24px;
      }
      .time {
        font-size: 24px;
        color: rgb(147, 153, 159);
        line-height: 36px;
      }
    }
  }
</style>
